package processor;

import data.JDBCLogin;
import domain.Usuario;

public class LoginProcessor {

	public JDBCLogin ldao = new JDBCLogin();
	
	public LoginProcessor(){
		new JDBCLogin();
	}
	
	public boolean singIn(String user, String pass){
		return ldao.singIn(user, pass);
	}
	
	public String obtenerID(String user, String pass){
		return ldao.obtenerID(user, pass);
	}
	
	public boolean singOut(){
		return ldao.singOut();
	}
	
	public Usuario obtenerUsuario(Integer oid) {
		return ldao.obtenerUsuario(oid);
	}
	
	public void insertarUsuario(String n, String ap, String u, String con,String p,int a,int c,int sin,int soc,int mov){
		ldao.insertarUsuario(n, ap, u, con, p, a, c, sin, soc, mov);
	}
	
	
}
